{% load i18n static adminlte_options %}<!DOCTYPE html>
{% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi as LANGUAGE_BIDI %}
<html lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
<head>
    <!-- Current language: {{ LANGUAGE_CODE }} -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>
        {% get_adminlte_option 'site_title' as adminlte_site_title %}
        {% if adminlte_site_title.valid %}
            {{ adminlte_site_title.site_title }}
        {% else %}
            {{ site_title|default:_('Django site admin') }}
        {% endif %}
        | {% trans "Log in" %}
    </title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap -->
    <link rel="stylesheet" href={% static "admin/components/bootstrap/dist/css/bootstrap.min.css" %}>
    <!-- Font Awesome -->
    <link rel="stylesheet" href={% static "admin/components/font-awesome/css/font-awesome.min.css" %}>
    <!-- Ionicons -->
    <link rel="stylesheet" href={% static "admin/components/Ionicons/css/ionicons.min.css" %}>
    <!-- Theme style -->
    <link rel="stylesheet" href={% static "admin/dist/css/AdminLTE.min.css" %}>
    <!-- iCheck -->
    <link rel="stylesheet" href={% static "admin/plugins/iCheck/square/blue.css" %}>

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="//oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="//oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <!-- Google Font -->
    <link rel="stylesheet" href={% static "admin/dist/css/fontgoogle.css" %}>
</head>
<body class="hold-transition login-page">

<div class="login-box">
    <div class="login-logo">
        <a href="/">
            <b>
                {% get_adminlte_option 'site_header' as adminlte_site_header  %}
                {% if adminlte_site_header.valid %}
                    {{ adminlte_site_header.site_header }}
                {% else %}
                    {{ site_header }}
                {% endif %}
            </b>
        </a>
    </div>

    <!-- /.login-logo -->
    <div class="login-box-body">
        <p class="login-box-msg">
            {% get_adminlte_option 'welcome_sign' as adminlte_welcome_sign  %}
            {% if adminlte_welcome_sign.valid %}
                {{ adminlte_welcome_sign.welcome_sign }}
            {% else %}
                {% trans 'Login and Enjoy' %}
            {% endif %}
        </p>
        <form action="{{ app_path }}" method="post">
            {% csrf_token %}
            {% if form.errors %}
                <div class="callout callout-danger">
                    {% for error in form.non_field_errors %}
                        <p>{{ error }}</p>
                    {% endfor %}
                </div>
            {% endif %}
            <div class="form-group has-feedback">
                <input id="id_username" name="username" type="text" class="form-control" placeholder="{% trans 'username' %}" required>
                <span class="glyphicon glyphicon-user form-control-feedback"></span>
            </div>
            <div class="form-group has-feedback">
                <input id="id_password" name="password" type="password" class="form-control" placeholder="{% trans 'password' %}" required>
                <span class="glyphicon glyphicon-lock form-control-feedback"></span>
            </div>
            <div class="row">
                <div class="col-xs-8">
                    <div class="checkbox icheck">
                        <label>
                            <input type="checkbox"> {% trans 'Remember me' %}
                        </label>
                    </div>
                </div>
                <!-- /.col -->
                <div class="col-xs-4">
                    <button type="submit" class="btn btn-primary btn-block btn-flat">{% trans "Log in" %}</button>
                </div>
                <!-- /.col -->
            </div>
        </form>

        <!--<div class="social-auth-links text-center">-->
        <!--<p>- {% trans "Other" %} -</p>-->
        <!--<a href="#" class="btn btn-block btn-social btn-facebook btn-flat"><i class="fa fa-facebook"></i>{% trans 'Sign in using Facebook' %}</a>-->
        <!--<a href="#" class="btn btn-block btn-social btn-google btn-flat"><i class="fa fa-google-plus"></i>{% trans 'Sign in using Google+' %}</a>-->
        <!--</div>-->
        <!-- /.social-auth-links -->
        <div class="row">
            {# <div class="col-xs-8"><a href="#">{% trans 'Forgot password ?' %}</a></div> #}
            {# <div class="col-xs-4 text-right"><a href="{% url 'admin:register' %}" class="text-center">{% trans "Register" %}</a></div> #}
        </div>
    </div>
    <!-- /.login-box-body -->
</div>
<!-- /.login-box -->

<!-- jQuery -->
<script src={% static "admin/components/jquery/dist/jquery.min.js" %}></script>
<!-- Bootstrap -->
<script src={% static "admin/components/bootstrap/dist/js/bootstrap.min.js" %}></script>
<!-- iCheck -->
<script src={% static "admin/plugins/iCheck/icheck.min.js" %}></script>
<script>
    $(function () {
        $('input').iCheck({
            checkboxClass: 'icheckbox_square-blue',
            radioClass: 'iradio_square-blue',
            increaseArea: '20%' // optional
        });
    });
</script>
</body>
</html>
